package com.weiyuwqj.api.model.convert;

/**
 * Created by zhangyong on 2016/3/24.
 */
public class ItemIsrecommendConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if(val==null) return "";
        if(!(val instanceof Integer)){
            return "";
        }
        int type=(Integer)val;
        if(type==1){
            return "是";
        }else if(type==0){
            return "否";
        }else {
            return "其他";
        }
    }
}
